#pragma once
#include "DPlane2D.h"
#include "../DWorld.h"
#include "../DVector3.h"
#include "DJointGroup.h"

namespace Skill
{
	namespace Ode
	{
		namespace Joints
		{	
			DPlane2D::DPlane2D(DWorld^ world , DJointGroup^ group)
				:DJoint(world,group)
			{
				dWorldID w = world? world->_This : NULL;
				dJointGroupID g = group? group->_This : NULL;
				_SetPointer(dJointCreatePlane2D(w,g),true);
			}

			void DPlane2D::SetXParam(DJointParameters parameter, dReal value)
			{
				dJointSetPlane2DXParam(_This,(int)parameter, value);
			}
			void DPlane2D::SetYParam(DJointParameters parameter, dReal value)
			{
				dJointSetPlane2DYParam(_This,(int)parameter, value);
			}
			void DPlane2D::SetAngleParam(DJointParameters parameter, dReal value)
			{
				dJointSetPlane2DAngleParam(_This,(int)parameter, value);				
			}
		}
	}
}